import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
kids=cv.imread("../imgs/kids.jpg")

#使用：绝对尺寸使用dsize设置
# print("缩放前：",kids.shape)
# rows,cols=kids.shape[:2]
# res=cv.resize(kids,(3*cols,3*rows))
# plt.imshow(res[:,:,::-1])
# print("缩放后：",res.shape)

#使用:相对坐标
res1=cv.resize(kids,None,fx=0.3,fy=0.3)
plt.imshow(res1[:,:,::-1])

plt.show()
